<?php

class ObserverHandler {
	
	private $m_dbConnection = "";
	private $m_observerDAL = "";
	
	// They're all just intermediaries, just passing the information on
		
	public function __construct ($a_dbConnection, $a_observerDAL){
		$this->m_dbConnection = $a_dbConnection;
		$this->m_observerDAL = $a_observerDAL;
	}
	
	public function GetMenu ($a_categoryIdName, $a_categoryName, $a_parentIdName, $a_shortDescriptionName){
		return $this->m_observerDAL->GetMenu($a_categoryIdName, $a_categoryName, $a_parentIdName, $a_shortDescriptionName);
	}
	
	public function GetAllPosts () {
		return $this->m_observerDAL->GetAllPosts();
	}
	
	public function GetSinglePost ($a_postId, $a_postIdName, $a_postHeaderName, $a_postContentName) {
		return $this->m_observerDAL->GetSinglePost($a_postId, $a_postIdName, $a_postHeaderName, $a_postContentName);
	}	
	
	public function UpdatePost($a_header, $a_content, $a_postId){
		return $this->m_observerDAL->UpdatePost($a_header, $a_content, $a_postId);
	}
	
	public function DeletePost($a_postId){
		return $this->m_observerDAL->DeletePost($a_postId);
	}
	public function NewPost($a_header, $a_content, $a_category){
		return $this->m_observerDAL->NewPost($a_header, $a_content, $a_category);
	}
}